package com.secxiot.provider.task.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Collections;
import java.util.Date;
import java.util.List;

/**
 * 首页任务列表
 */
@ApiModel
@Data
@ToString
@NoArgsConstructor
//@Builder
public class TaskHomeVo implements Serializable {
    private static final long serialVersionUID = 6117436579319979516L;

    @ApiModelProperty(value = "请求返回数量",required = true)
    private long pageSize;

    @ApiModelProperty(value = "请求页码，起始0",required = true)
    private long pageNo;

    @ApiModelProperty(value = "应该返回总数", required = true)
    private long total;

    @ApiModelProperty(value = "实际返回总数", required = true)
    private long count;

    @ApiModelProperty(value = "实际起始时间", required = true)
    private Date since;

    @ApiModelProperty(value = "实际结束时间" , required = true)
    private Date last;

    @ApiModelProperty(value = "任务列表")
    List<TaskVo> tasks = Collections.emptyList();
}
